// 导入初始化样式
import "@/assets/styles/base.css";
import React from "react";
import { Route, Router, Switch } from "react-router-dom";
import H5Move from "./pages/H5Move";
import Home from "./pages/Home";
import RichText from "./pages/RichText";
import SwiperCom from "./pages/SwiperCom";
import A4UpFile from "./pages/A4UpFile";
import A5ClipUp from "./pages/A5ClipUp";
import A6WxShare from "./pages/A6WxShare";
import A7three from "./pages/A7three";
import A8move from "./pages/A8move";

import history from "./utils/history";

function App() {
  return (
    <>
      <Router history={history}>
        <Switch>
          <Route path="/swiper" component={SwiperCom} />
          <Route path="/h5move" component={H5Move} />
          <Route path="/richText" component={RichText} />
          <Route path="/upFile" component={A4UpFile} />
          <Route path="/clipUp" component={A5ClipUp} />
          <Route path="/share" component={A6WxShare} />
          <Route path="/three" component={A7three} />
          <Route path="/move" component={A8move} />
          <Route path="/" component={Home} />
        </Switch>
      </Router>
    </>
  );
}

const MemoApp = React.memo(App);

export default MemoApp;
